package com.xxh.securitydemo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxh.securitydemo.model.UmsAdmin;
import com.xxh.securitydemo.model.UmsMenu;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("UmsAdminDao")
public interface UmsAdminDao extends BaseMapper<UmsAdmin> {
    int deleteByPrimaryKey(Long id);

    int insert(UmsAdmin record);

    int insertSelective(UmsAdmin record);

    UmsAdmin selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UmsAdmin record);

    int updateByPrimaryKey(UmsAdmin record);

    List<UmsMenu> getMenusByPrimaryKey(Long id);
}